package com.ahsjdy.st.stdao.mapper;

import com.ahsjdy.st.stdao.entity.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User getByOpenId(String openid);

    User getByPhone(String phone);

    int updatePhone(@Param("userId") Integer userId, @Param("openid") String openid);
}